package com.learner.vod.controller.api;

import com.learner.vod.service.VideoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description: 获取播放
 * @Author: ice2020x
 * @Date: 2021/10/14
 */
@Slf4j
@RequestMapping("/api/vod/media")
@RestController
public class ApiMediaController {

    @Autowired
    private VideoService videoService;

    @GetMapping("/get_play_auth/{id}")
    public String getPlayAuth(@PathVariable("id") String videoSourceId) {
        return videoService.getPlayAuth(videoSourceId);
    }


}
